import service from "@/service/method"

export const requestToken = (code: string) => {
    const url = "/api/user/token"
    const data = {
        code,
    }
    return service.post(url, data)
}

export const requestLogin = (data: { name: string; pwd: string }) => {
    const url = "/api/user/login"
    return service.post(url, data)
}